package com.app.miwawa.api.system.service.dao;

import org.framework.common.api.service.repository.CommonRepositoryAware;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.app.miwawa.api.system.entity.Auths;

/**
 * 数据接口
 * <p>描述: 角色权限－数据接口</p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date 2016年2月7日 下午4:34:16
 * @version 1.0.2016
 */
public interface AuthsDao extends CommonRepositoryAware<Auths, String> {

	@Modifying
	@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
	@Query("delete Auths o where o.groupsid = :groupsid")
	public void delete(@Param("groupsid") final String groupsid);
	
}
